/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.safetytask.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel(value = "用户的任务结果反馈",description = "用户的任务结果反馈实体类")
public class UserTaskResult extends BaseEntity {
    @ApiModelProperty(name = "userTaskId", value = "任务id",required = true)
    private String userTaskId;
    @ApiModelProperty(name = "executorCode", value = "执行人code",required = true)
    private String executorCode;
    @ApiModelProperty(name = "resultDesc", value = "任务结构描述" )
    private String resultDesc;
    @ApiModelProperty(name = "resultFile", value = "任务结果附件" )
    private String resultFile;
    @ApiModelProperty(name = "isDraft", value = "是否存为草稿，0 草稿，1 提交",required = true)
    private Integer isDraft;
    @ApiModelProperty(name = "approvedTime", value = "审批时间" )
    private Date approvedTime;
    @ApiModelProperty(name = "approverCode", value = "审批人code" )
    private String approverCode;
    @ApiModelProperty(name = "isPass", value = "是否通过，0 不通过 1 通过" )
    private Integer isPass;
    @ApiModelProperty(name = "opinion", value = "审批意见" )
    private String opinion;

    public String getUserTaskId() {
        return userTaskId;
    }

    public void setUserTaskId(String userTaskId) {
        this.userTaskId = userTaskId;
    }

    public String getExecutorCode() {
        return executorCode;
    }

    public void setExecutorCode(String executorCode) {
        this.executorCode = executorCode;
    }

    public String getResultDesc() {
        return resultDesc;
    }

    public void setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
    }

    public String getResultFile() {
        return resultFile;
    }

    public void setResultFile(String resultFile) {
        this.resultFile = resultFile;
    }

    public Integer getIsDraft() {
        return isDraft;
    }

    public void setIsDraft(Integer isDraft) {
        this.isDraft = isDraft;
    }

    public Date getApprovedTime() {
        return approvedTime;
    }

    public void setApprovedTime(Date approvedTime) {
        this.approvedTime = approvedTime;
    }

    public String getApproverCode() {
        return approverCode;
    }

    public void setApproverCode(String approverCode) {
        this.approverCode = approverCode;
    }

    public Integer getIsPass() {
        return isPass;
    }

    public void setIsPass(Integer isPass) {
        this.isPass = isPass;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    @Override
    public String toString() {
        return "UserTaskResult{" +
                "userTaskId='" + userTaskId + '\'' +
                ", executorCode='" + executorCode + '\'' +
                ", resultDesc='" + resultDesc + '\'' +
                ", resultFile='" + resultFile + '\'' +
                ", isDraft='" + isDraft + '\'' +
                ", approvedTime='" + approvedTime + '\'' +
                ", approverCode='" + approverCode + '\'' +
                ", isPass='" + isPass + '\'' +
                ", opinion='" + opinion + '\'' +
                '}';
    }
}
